package charStreamDemo;

import java.io.FileWriter;
import java.io.IOException;

public class Demo5 {
        public static void main(String[] args) throws IOException {


            FileWriter fw = new FileWriter("myio\\a.txt");


            fw.write("我的同学各个都很厉害");
            fw.write("说话声音很好听");

            fw.flush();

            fw.write("都是人才");
            fw.write("超爱这里哟");

            fw.close();

            fw.write("B站");

        }
}
